package com.luke.base.domain.vo;

import com.luke.base.util.MapGPSTranslateUtil;

import java.io.Serializable;
public class Location implements Serializable {

    private static final long serialVersionUID = 1L;

    private String car_id;
    /**定位时间*/
    private String time;
    /**高德经度 已纠偏*/
    private double lon;
    /**高德纬度 已纠偏*/
    private double lat;

    private double lon_r;

    private double lat_r;

    private double[] baidu;

    /**速度 km/h*/
    private Integer speed;
    /**航向，正北0度，顺时针转依次为1,2,3…最大360*/
    private Integer heading;

    private Integer hdop;
    /**点类型*/
    private String pt;
    /**参与卫星个数*/
    private Integer num;
    /**海拔高度 米*/
    private Integer alt;

    public String getCar_id() {
        return car_id;
    }

    public void setCar_id(String car_id) {
        this.car_id = car_id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public double getLon() {

        return lon/1000000;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public double getLat() {
        return lat/1000000;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLon_r() {
        return lon_r;
    }

    public void setLon_r(double lon_r) {
        this.lon_r = lon_r;
    }

    public double getLat_r() {
        return lat_r;
    }

    public void setLat_r(double lat_r) {
        this.lat_r = lat_r;
    }

    public Integer getSpeed() {
        return speed;
    }

    public void setSpeed(Integer speed) {
        this.speed = speed;
    }

    public Integer getHeading() {
        return heading;
    }

    public void setHeading(Integer heading) {
        this.heading = heading;
    }

    public String getPt() {
        return pt;
    }

    public void setPt(String pt) {
        this.pt = pt;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getAlt() {
        return alt;
    }

    public void setAlt(Integer alt) {
        this.alt = alt;
    }

    public Integer getHdop() {
        return hdop;
    }

    public void setHdop(Integer hdop) {
        this.hdop = hdop;
    }
    public double[] getBaidu() {

        return MapGPSTranslateUtil.gps84_To_bd09(lat_r/1000000,lon_r/1000000);
    }

    public void setBaidu(double[] baidu) {
        this.baidu = baidu;
    }





}
